package com.myx.design.factory.method;

/**
 * 描述:工厂方法测试
 * @author: myx
 * @date: 2018/11/28
 * Copyright © 2018-hotpot. All rights reserved.
 */
public class MethodTest {
    public static void main(String[] args) {
        LingKeMethodFactory lingKeFactory=new LingKeMethodFactory();
        lingKeFactory.createCar().run();
        WeyMethodFactory weyFactory =new WeyMethodFactory();
        weyFactory.createCar().run();
    }
}
